package com.videoaggre.zcl.db

import androidx.room.Entity
import androidx.room.PrimaryKey
import com.videoaggre.zcl.bean.QimanComicChapter
import com.videoaggre.zcl.bean.QimanComicHomeNormal
import java.util.*

@Entity
data class AgefansSearchKeywordHistory(
    @PrimaryKey(autoGenerate = true) val id: Int,
    val keyword: String?,
)

@Entity
data class QimanComicHistory(
    @PrimaryKey val comicId: String = "",
    val img: String = "",
    val name: String = "",
    val desc: String = "",
    val updateTime: Date = Date(),
)

@Entity
data class QimanComicBrowse(
    @PrimaryKey val serieId: String = "",
    val comicId: String = "",
    val updateTime: Date = Date(),
    var qimanComicPre: MutableList<String>? = null,
    var nextId: String = "",
)

@Entity
data class QimanComicDetail(
    @PrimaryKey var id: String = "",
    var img: String = "",
    var name: String = "",
    var author: String = "",
    var type: String = "",
    var updateTime: String = "",
    var latestChapter: String = "",
    var desc: String = "",
    val chapters: MutableList<QimanComicChapter> = mutableListOf(),
    val recommends: MutableList<QimanComicHomeNormal> = mutableListOf(),
)